package com.justgame.project.service.system.client;

import com.justgame.project.service.system.entity.SysUserInfo;
import org.springframework.web.bind.annotation.RestController;
import com.justgame.project.service.system.feign.ISysUserInfoClient;
import com.justgame.project.service.system.service.ISysUserInfoService;
import lombok.RequiredArgsConstructor;

/**
 *
 * 用户信息表远程服务生产者
 *
 * @@tableName sys_user_info
 * @author Zwb
 */
@RestController
@RequiredArgsConstructor
public class SysUserInfoClient implements ISysUserInfoClient{
    private final ISysUserInfoService sysUserInfoService;

    @Override
    public SysUserInfo getUserInfoById(Long id) {
        return sysUserInfoService.getById(id);
    }

    @Override
    public boolean updateById(SysUserInfo userInfo) {
        return sysUserInfoService.updateById(userInfo);
    }
}
